home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7403 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 70 6c 31 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |g.pl1,co|mp.lang.|
|00000080| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 50 |c.Subjec|t: Re: P|
|00000090| 4c 2f 49 20 61 6e 64 20 | 43 0a 44 61 74 65 3a 20 |L/I and |C.Date: |
|000000a0| 4d 6f 6e 2c 20 32 36 20 | 46 65 62 20 31 39 39 36 |Mon, 26 |Feb 1996|
|000000b0| 20 30 30 3a 34 30 3a 33 | 30 20 2d 30 36 30 30 0a | 00:40:3|0 -0600.|
|000000c0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 55 6e |Organiza|tion: Un|
|000000d0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 49 6f 77 61 |iversity| of Iowa|
|000000e0| 2c 20 49 6f 77 61 20 43 | 69 74 79 2c 20 49 41 2c |, Iowa C|ity, IA,|
|000000f0| 20 55 53 41 0a 44 69 73 | 74 72 69 62 75 74 69 6f | USA.Dis|tributio|
|00000100| 6e 3a 20 77 6f 72 6c 64 | 0a 4d 65 73 73 61 67 65 |n: world|.Message|
|00000110| 2d 49 44 3a 20 3c 50 69 | 6e 65 2e 41 33 32 2e 33 |-ID: <Pi|ne.A32.3|
|00000120| 2e 39 31 2e 39 36 30 32 | 32 36 30 30 33 30 34 38 |.91.9602|26003048|
|00000130| 2e 31 39 31 34 38 41 2d | 31 30 30 30 30 30 40 62 |.19148A-|100000@b|
|00000140| 6c 61 63 6b 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |lack.wee|g.uiowa.|
|00000150| 65 64 75 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |edu>.Ref|erences:|
|00000160| 20 3c 34 67 68 35 72 75 | 24 65 6e 67 40 67 6f 61 | <4gh5ru|$eng@goa|
|00000170| 6e 6e 61 2e 63 73 2e 72 | 6d 69 74 2e 45 44 55 2e |nna.cs.r|mit.EDU.|
|00000180| 41 55 3e 20 3c 33 31 32 | 43 43 45 42 32 2e 34 41 |AU> <312|CCEB2.4A|
|00000190| 42 37 40 63 6f 72 70 2e | 64 69 61 6c 6f 67 2e 63 |B7@corp.|dialog.c|
|000001a0| 6f 6d 3e 20 3c 41 44 35 | 33 36 41 41 42 39 36 36 |om> <AD5|36AAB966|
|000001b0| 38 42 37 36 43 44 40 6d | 63 64 69 61 6c 62 30 39 |8B76CD@m|cdialb09|
|000001c0| 2e 69 74 2e 6c 75 63 2e | 65 64 75 3e 20 3c 33 31 |.it.luc.|edu> <31|
|000001d0| 32 45 33 36 33 43 2e 33 | 43 44 45 40 63 6f 72 70 |2E363C.3|CDE@corp|
|000001e0| 2e 64 69 61 6c 6f 67 2e | 63 6f 6d 3e 20 3c 6d 6a |.dialog.|com> <mj|
|000001f0| 73 2e 38 32 35 31 31 33 | 31 33 39 40 68 75 62 63 |s.825113|139@hubc|
|00000200| 61 70 3e 20 3c 41 44 35 | 36 38 45 41 31 39 36 36 |ap> <AD5|68EA1966|
|00000210| 38 39 32 30 41 45 40 6d | 63 64 69 61 6c 61 31 31 |8920AE@m|cdiala11|
|00000220| 2e 69 74 2e 6c 75 63 2e | 65 64 75 3e 0a 4e 4e 54 |.it.luc.|edu>.NNT|
|00000230| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000240| 62 6c 61 63 6b 2e 77 65 | 65 67 2e 75 69 6f 77 61 |black.we|eg.uiowa|
|00000250| 2e 65 64 75 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.edu.Mim|e-Versio|
|00000260| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000270| 79 70 65 3a 20 54 45 58 | 54 2f 50 4c 41 49 4e 3b |ype: TEX|T/PLAIN;|
|00000280| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|00000290| 49 0a 58 2d 53 65 6e 64 | 65 72 3a 20 72 6f 62 69 |I.X-Send|er: robi|
|000002a0| 6e 73 6f 6e 40 62 6c 61 | 63 6b 2e 77 65 65 67 2e |nson@bla|ck.weeg.|
|000002b0| 75 69 6f 77 61 2e 65 64 | 75 0a 49 6e 2d 52 65 70 |uiowa.ed|u.In-Rep|
|000002c0| 6c 79 2d 54 6f 3a 20 3c | 41 44 35 36 38 45 41 31 |ly-To: <|AD568EA1|
|000002d0| 39 36 36 38 39 32 30 41 | 45 40 6d 63 64 69 61 6c |9668920A|E@mcdial|
|000002e0| 61 31 31 2e 69 74 2e 6c | 75 63 2e 65 64 75 3e 20 |a11.it.l|uc.edu> |
|000002f0| 0a 0a 4f 6e 20 53 75 6e | 2c 20 32 35 20 46 65 62 |..On Sun|, 25 Feb|
|00000300| 20 31 39 39 36 2c 20 56 | 65 72 6e 65 20 41 72 61 | 1996, V|erne Ara|
|00000310| 73 65 20 77 72 6f 74 65 | 3a 0a 0a 3e 20 49 6e 20 |se wrote|:..> In |
|00000320| 61 72 74 69 63 6c 65 20 | 3c 6d 6a 73 2e 38 32 35 |article |<mjs.825|
|00000330| 31 31 33 31 33 39 40 68 | 75 62 63 61 70 3e 2c 0a |113139@h|ubcap>,.|
|00000340| 3e 20 6d 6a 73 40 68 75 | 62 63 61 70 2e 63 6c 65 |> mjs@hu|bcap.cle|
|00000350| 6d 73 6f 6e 2e 65 64 75 | 20 28 4d 2e 20 4a 2e 20 |mson.edu| (M. J. |
|00000360| 53 61 6c 74 7a 6d 61 6e | 29 20 77 72 6f 74 65 3a |Saltzman|) wrote:|
|00000370| 0a 0a 3e 20 20 3e 7c 3e | 20 49 6e 20 66 61 63 74 |..> >|>| In fact|
|00000380| 2c 20 69 66 20 49 20 72 | 65 63 61 6c 6c 20 63 6f |, if I r|ecall co|
|00000390| 72 72 65 63 74 6c 79 20 | 61 20 70 6f 69 6e 74 65 |rrectly |a pointe|
|000003a0| 72 20 74 6f 20 78 20 69 | 73 20 69 6d 70 6c 69 63 |r to x i|s implic|
|000003b0| 69 74 6c 79 20 61 6e 20 | 61 72 72 61 79 2e 0a 3e |itly an |array..>|
|000003c0| 20 20 3e 0a 3e 20 20 3e | 49 20 64 6f 6e 27 74 20 | >.> >|I don't |
|000003d0| 75 6e 64 65 72 73 74 61 | 6e 64 20 74 68 69 73 20 |understa|nd this |
|000003e0| 72 65 6d 61 72 6b 20 61 | 74 20 61 6c 6c 2e 20 20 |remark a|t all. |
|000003f0| 41 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 78 20 69 |A pointe|r to x i|
|00000400| 73 20 6e 6f 74 68 69 6e | 67 20 6c 69 6b 65 0a 3e |s nothin|g like.>|
|00000410| 20 20 3e 61 6e 20 61 72 | 72 61 79 2e 20 20 53 65 | >an ar|ray. Se|
|00000420| 65 20 74 68 65 20 46 41 | 51 20 66 6f 72 20 61 20 |e the FA|Q for a |
|00000430| 64 65 74 61 69 6c 65 64 | 20 64 69 73 63 75 73 73 |detailed| discuss|
|00000440| 69 6f 6e 20 6f 66 20 74 | 68 65 20 72 65 6c 61 74 |ion of t|he relat|
|00000450| 69 6f 6e 73 68 69 70 0a | 3e 20 20 3e 62 65 74 77 |ionship.|> >betw|
|00000460| 65 65 6e 20 70 6f 69 6e | 74 65 72 73 20 61 6e 64 |een poin|ters and|
|00000470| 20 61 72 72 61 79 73 2e | 0a 3e 20 0a 3e 20 49 20 | arrays.|.> .> I |
|00000480| 77 61 73 20 6a 75 73 74 | 20 65 78 70 6c 61 69 6e |was just| explain|
|00000490| 69 6e 67 20 74 68 61 74 | 20 69 6e 20 43 2c 20 69 |ing that| in C, i|
|000004a0| 66 20 79 6f 75 20 68 61 | 76 65 20 61 20 70 6f 69 |f you ha|ve a poi|
|000004b0| 6e 74 65 72 2c 20 79 6f | 75 20 61 6c 73 6f 20 68 |nter, yo|u also h|
|000004c0| 61 76 65 20 61 6e 0a 3e | 20 61 72 72 61 79 2e 0a |ave an.>| array..|
|000004d0| 0a 20 20 49 66 20 49 20 | 64 65 63 6c 61 72 65 20 |. If I |declare |
|000004e0| 63 68 61 72 20 2a 70 74 | 72 3b 20 69 6e 20 77 68 |char *pt|r; in wh|
|000004f0| 61 74 20 73 65 6e 73 65 | 20 68 61 76 65 20 49 20 |at sense| have I |
|00000500| 67 61 69 6e 65 64 20 61 | 6e 20 61 72 72 61 79 3f |gained a|n array?|
|00000510| 0a 0a 20 20 54 68 61 74 | 20 64 6f 65 73 6e 27 74 |.. That| doesn't|
|00000520| 20 6d 61 6b 65 20 61 6e | 79 20 73 65 6e 73 65 2e | make an|y sense.|
|00000530| 20 20 41 6e 20 61 72 72 | 61 79 20 64 65 63 61 79 | An arr|ay decay|
|00000540| 73 20 69 6e 74 6f 20 61 | 20 70 6f 69 6e 74 65 72 |s into a| pointer|
|00000550| 20 74 6f 20 69 74 73 20 | 0a 66 69 72 73 74 20 65 | to its |.first e|
|00000560| 6c 65 6d 65 6e 74 20 75 | 6e 64 65 72 20 63 65 72 |lement u|nder cer|
|00000570| 74 61 69 6e 20 63 69 72 | 63 75 6d 73 74 61 6e 63 |tain cir|cumstanc|
|00000580| 65 73 2a 20 61 6e 64 20 | 61 20 70 6f 69 6e 74 65 |es* and |a pointe|
|00000590| 72 20 6f 66 20 74 79 70 | 65 20 66 6f 6f 20 2a 20 |r of typ|e foo * |
|000005a0| 63 61 6e 20 0a 70 6f 69 | 6e 74 20 74 6f 20 61 6e |can .poi|nt to an|
|000005b0| 20 61 72 72 61 79 20 6f | 66 20 66 6f 6f 73 2c 20 | array o|f foos, |
|000005c0| 62 75 74 20 74 68 61 74 | 27 73 20 61 62 6f 75 74 |but that|'s about|
|000005d0| 20 74 68 65 20 65 78 74 | 65 6e 74 20 6f 66 20 74 | the ext|ent of t|
|000005e0| 68 65 69 72 20 0a 72 65 | 6c 61 74 69 6f 6e 73 68 |heir .re|lationsh|
|000005f0| 69 70 20 28 74 68 65 72 | 65 20 61 72 65 20 6f 66 |ip (ther|e are of|
|00000600| 20 63 6f 75 72 73 65 20 | 76 6f 69 64 20 61 6e 64 | course |void and|
|00000610| 20 63 68 61 72 20 70 6f | 69 6e 74 65 72 73 2c 20 | char po|inters, |
|00000620| 77 68 69 63 68 20 63 61 | 6e 20 70 6f 69 6e 74 20 |which ca|n point |
|00000630| 0a 74 6f 20 5b 61 72 72 | 61 79 73 20 6f 66 5d 20 |.to [arr|ays of] |
|00000640| 61 6e 79 20 74 79 70 65 | 20 65 78 63 65 70 74 20 |any type| except |
|00000650| 66 75 6e 63 74 69 6f 6e | 73 29 2e 20 20 54 68 65 |function|s). The|
|00000660| 20 46 41 51 20 68 61 73 | 20 61 20 67 6f 6f 64 20 | FAQ has| a good |
|00000670| 64 69 73 63 75 73 73 69 | 6f 6e 20 6f 66 20 0a 74 |discussi|on of .t|
|00000680| 68 65 20 64 69 66 66 65 | 72 65 6e 63 65 20 62 65 |he diffe|rence be|
|00000690| 74 77 65 65 6e 20 61 72 | 72 61 79 73 20 61 6e 64 |tween ar|rays and|
|000006a0| 20 70 6f 69 6e 74 65 72 | 73 2c 20 61 73 20 64 6f | pointer|s, as do|
|000006b0| 65 73 20 4b 26 52 32 2e | 0a 0a 2a 20 77 68 65 6e |es K&R2.|..* when|
|000006c0| 20 74 68 65 20 61 72 72 | 61 79 20 6f 63 63 75 72 | the arr|ay occur|
|000006d0| 73 20 77 69 74 68 6f 75 | 74 20 5b 5d 73 20 61 73 |s withou|t []s as|
|000006e0| 20 61 6e 20 72 76 61 6c | 75 65 2c 20 61 73 20 69 | an rval|ue, as i|
|000006f0| 6e 0a 69 6e 74 20 2a 70 | 2c 20 61 5b 31 30 5d 3b |n.int *p|, a[10];|
|00000700| 0a 70 20 3d 20 61 3b 0a | 20 20 77 68 65 6e 20 69 |.p = a;.| when i|
|00000710| 74 20 69 73 20 6f 70 65 | 72 61 74 65 64 20 6f 6e |t is ope|rated on|
|00000720| 20 62 79 20 74 68 65 20 | 5b 5d 20 6f 70 65 72 61 | by the |[] opera|
|00000730| 74 6f 72 20 28 61 5b 36 | 5d 20 62 65 63 6f 6d 65 |tor (a[6|] become|
|00000740| 73 20 2a 28 61 20 2b 20 | 36 29 29 2c 0a 20 20 61 |s *(a + |6)),. a|
|00000750| 6e 64 20 77 68 65 6e 20 | 69 74 20 69 73 20 70 61 |nd when |it is pa|
|00000760| 73 73 65 64 20 61 73 20 | 61 20 70 61 72 61 6d 65 |ssed as |a parame|
|00000770| 74 65 72 20 69 6e 20 61 | 20 66 75 6e 63 74 69 6f |ter in a| functio|
|00000780| 6e 20 63 61 6c 6c 2e 0a | 0a 2f 2a 2a 4a 61 6d 65 |n call..|./**Jame|
|00000790| 73 20 52 6f 62 69 6e 73 | 6f 6e 2a 2a 2a 2a 2a 2a |s Robins|on******|
|000007a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007b0| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 |* | . |
|000007c0| 22 41 6e 20 69 6d 70 6f | 72 74 61 6e 74 20 67 6f |"An impo|rtant go|
|000007d0| 61 6c 20 6f 66 20 61 6c | 6d 6f 73 74 20 65 76 65 |al of al|most eve|
|000007e0| 72 79 20 67 72 61 70 68 | 69 63 73 20 70 72 6f 67 |ry graph|ics prog|
|000007f0| 72 61 6d 20 69 73 20 74 | 6f 20 64 72 61 77 20 70 |ram is t|o draw p|
|00000800| 69 63 74 75 72 65 73 20 | 6f 6e 0a 20 74 68 65 20 |ictures |on. the |
|00000810| 73 63 72 65 65 6e 2e 22 | 20 20 20 20 2d 2d 20 4e |screen."| -- N|
|00000820| 65 69 64 65 72 2c 20 44 | 61 76 69 73 20 26 20 57 |eider, D|avis & W|
|00000830| 6f 6f 2c 20 5f 4f 70 65 | 6e 47 4c 5f 50 72 6f 67 |oo, _Ope|nGL_Prog|
|00000840| 72 61 6d 6d 69 6e 67 5f | 47 75 69 64 65 5f 2c 20 |ramming_|Guide_, |
|00000850| 43 68 61 70 74 65 72 20 | 31 30 0a 20 20 20 20 20 |Chapter |10. |
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 6a | ******|*******j|
|00000890| 61 6d 65 73 2d 72 6f 62 | 69 6e 73 6f 6e 40 75 69 |ames-rob|inson@ui|
|000008a0| 6f 77 61 2e 65 64 75 2a | 2a 2f 0a |owa.edu*|*/. |
+--------+-------------------------+-------------------------+--------+--------+